<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['gdfh']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$psize = 20;
$page = isset($_GET['page'])?$_GET['page']:1;
$stime = isset($_GET['stime'])?$_GET['stime']:"";
$etime = isset($_GET['etime'])?$_GET['etime']:"";
$list = fhlist($page,$psize,$stime,$etime);
$num = fhlistnum($stime,$etime);
if($list){
    $msg = 1;
}else{
    $msg = 0;
}
$page1 = page1($num,$psize,$page,$_SERVER['PHP_SELF']."?stime=$stime&etime=$etime");
$tpl->assign('page',$page1);
$tpl->assign('msg',$msg);
$tpl->assign('tdarr',$tdarr);
$tpl->assign('tdarr1',$tdarr1);
$tpl->assign('stime',$stime);
$tpl->assign('etime',$etime);
$tpl->assign('clist',$list);
$tpl->show('fenhong');
?>